
// 自动生成模板MediaFiles
package example
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// mediaFiles表 结构体  MediaFiles
type MediaFiles struct {
    global.GVA_MODEL
  Video  *string `json:"video" form:"video" gorm:"comment:视频;column:video;size:255;" binding:"required"`  //视频
  Image  *string `json:"image" form:"image" gorm:"comment:图片封面;column:image;size:255;" binding:"required"`  //图片封面
  Size  *int `json:"size" form:"size" gorm:"comment:文件大小;column:size;size:19;" binding:"required"`  //文件大小
    CreatedBy  uint   `gorm:"column:created_by;comment:创建者"`
    UpdatedBy  uint   `gorm:"column:updated_by;comment:更新者"`
    DeletedBy  uint   `gorm:"column:deleted_by;comment:删除者"`
}


// TableName mediaFiles表 MediaFiles自定义表名 media_files
func (MediaFiles) TableName() string {
    return "media_files"
}





